﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master"   EnableEventValidation="false" AutoEventWireup="true" CodeFile="CustomerForm.aspx.cs" Inherits="App_Commons_CustomerSearch" Title="客户资料检索"%>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <cc1:comvalidator id="ComValidator1" runat="server" forecolor="Red" CheckItems-Capacity="4">
    <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtPersonId">
        <cc1:ComAbsParamsAttribute Parameter="人员编号" />
    </cc1:CheckLongAttribute>
</cc1:comvalidator>
   <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
        <div id="person" runat="server" >
        <table width="100%">
      <tr>
        <td>
        <table class="table_border_line">
                <tr>
                    <td align="left"  colspan="4">
                    <script language="javascript">
                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>
                    </td>
                </tr>
            </table>
            
		    <table class="table_border_line" style="background-color:#ffffff">
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtPersonId" runat="server"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>					
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员姓名</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtName" runat="server" MaxLength="100"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>	
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    性别</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:DropDownList ID="cmbSex" runat="server" DataTextField="Content" DataValueField="DictNo">
                    </asp:DropDownList></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>		  
           </table></td>
      </tr>
      <tr>
        <td align="center">
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSeach" runat="server" CssClass="button1" Text="检 索" Width="100%" OnClick="btnSeach_Click"/></td>						
             </tr>
          </table>    </td>
      </tr>
    </table>

    <br/>
    <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 检索结果')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
    <table class="table_border_bg">
       <tr>
        <td>
        
        
            <asp:GridView ID="GridView1"   runat="server"  AutoGenerateColumns="False" Width="100%" AllowPaging="True" CssClass="GridView_table"  OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnPageIndexChanging="GridView1_PageIndexChanging"   >
                <Columns>
                    <asp:CommandField ButtonType="Image" HeaderText="选择" SelectImageUrl="~/images/info.gif"
                        SelectText="" ShowSelectButton="True">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:CommandField>
                    <asp:BoundField HeaderText="人员编号" DataField="PersonId">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NameC" HeaderText="人员姓名" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SexText" HeaderText="人员性别" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            </asp:GridView>
        </td>
       </tr>	
      </table>
    </div>
   
        
        
        
        <div id="org" runat="server" style="display:none">
        
         <table width="100%">
      <tr>
        <td>
		    <table class="table_border_line">
		      
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    机构编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="organizationId" runat="server"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>					
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    机构名称</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="organizationName" runat="server" MaxLength="100"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>	
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    机构性质</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="organizationType" runat="server" MaxLength="100"></asp:TextBox>
                    
                   </td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>		  
           </table></td>
      </tr>
      <tr>
        <td align="center" style="height: 47px">
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="orgSrh" runat="server" CssClass="button1" Text="检 索" Width="100%" OnClick="orgSrh_Click" /></td>						
             </tr>
          </table>    </td>
      </tr>
    </table>
            <cc1:ComValidator ID="ComValidator2" runat="server" CheckItems-Capacity="4">
                <cc1:CheckLongAttribute Code="E0317" ControlToValidator="organizationId">
                    <cc1:ComAbsParamsAttribute Parameter="机构编号" />
                </cc1:CheckLongAttribute>
            </cc1:ComValidator>

    <br/>
    <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 检索结果')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
    <table class="table_border_bg">
       <tr>
        <td>
            <asp:GridView ID="GridView2" runat="server"  AutoGenerateColumns="False" Width="100%" AllowPaging="True" CssClass="GridView_table"  OnSelectedIndexChanged="GridView2_SelectedIndexChanged" DataSourceID="ObjectDataSource2">
                <Columns>
                    <asp:CommandField ButtonType="Image" HeaderText="选择" SelectImageUrl="~/images/info.gif"
                        SelectText="" ShowSelectButton="True">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:CommandField>
                    <asp:BoundField HeaderText="机构编号" DataField="OrganizationId">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="OrganizationName" HeaderText="机构名称" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="OrganizationType" HeaderText="机构性质" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="FindOrgList" TypeName="Shpm.App.Master.Dao.PersonInfoDao" >
                <SelectParameters>
                    <asp:ControlParameter ControlID="organizationId" Name="organizationId" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="organizationName" Name="organizationName" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="organizationType" Name="organizationType" PropertyName="Text"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
          
 
        </td>
       </tr>	
      </table>
</div>
</asp:Content>